package com.foreknow.polymorphism;

/**
 * @author shkstart
 * @create 2021-07-26 17:03
 */
public abstract  class Animal {
    private String name;
    private int legNum;
   public Animal(){

   }
    public Animal(String name, int legNum) {
        this.name = name;
        this.legNum = legNum;
    }

    public abstract String shout();

    public String getName() {
        return name;
    }

    public int getLegNum() {
        return legNum;
    }
}
